package com.example.proxy;

/**
 * Description:
 * User: 阿宾
 * Date: 2025-05-04
 * Time: 18:27
 */
public class Main {
    public static void main(String[] args) {
        //创建代理类
        HouseProxy proxy = new HouseProxy(new RealHouseSubject());
        //通过代理类访问目标方法
        proxy.rentHouse();
    }
}
